import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-10-05
 * Time: 13:07
 */
public class IODemo13 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./test.txt",true)) {

            String s = "可选择续写操作 或者 清空在写操作";
            writer.write(s);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
